// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import Axios from 'axios'
import './filter'
import MintUI from 'mint-ui';
import 'mint-ui/lib/style.css'
import '../static/css/base.css'
import '../static/css/normalize.css'
import 'font-awesome/css/font-awesome.css'
import {request, response, Error} from './service/httpInterceptor'

Vue.use(MintUI);

Vue.config.productionTip = false;

Axios.interceptors.request.use(request);

Axios.interceptors.response.use(response, Error);

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
